import { ModelInfo } from "../../scene/player/info/ModelInfo";
import { TItemPet } from "../../../../Message/Db/Tables/TItemPet";
type int = number;
//class PetItemInfo
    
    export  class PetItemInfo extends ModelInfo
    {
        constructor(arg1: TItemPet)
        {
            
            super();this._pet = arg1;
            return;
        }

        public get pet(): TItemPet
        {
            return this._pet;
        }

        public /* override */ get modelId(): string
        {
            if (this._petModelId <= 0) 
            {
                return this._pet.modelId + "";
            }
            return this._petModelId + "";
        }

        public clone(): PetItemInfo
        {
            var loc1=new PetItemInfo(this._pet);
            return loc1;
        }

        public set petModelId(arg1: int)
        {
            this._petModelId = arg1;
            return;
        }

        /* internal */ /* var */_pet: TItemPet;

        /* internal */ /* var */_petModelId: int=0;
    }
